package com.mediastory.spsserver.purchase.dao.impl;

import java.util.List;
import java.util.Map;

import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mediastory.spsserver.purchase.dao.PurchaseDao;

@Repository
public class PurchaseDaoImpl implements PurchaseDao {
	
	@Autowired
	private SqlSessionTemplate sqlSessionTemplatePurchaseData;

	public PurchaseDaoImpl() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public List<Map<String, Object>> selectListPurchaseData(Map<String, Object> condition)
			throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplatePurchaseData.selectList("Logging.selectList.purchaseData", condition);
	}	

}